import _http from '@/utils/http'

export default {
    goodsCategoryListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsCategory/list/simple',
            apiName: '商品分类下拉-前置条件:商品类型id',
        }, params, loading, headers)
    },
    goodsTypeListSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsType/list/simple',
            apiName: '商品类型下拉',
        }, params, loading, headers)
    },
    goodsBrandSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsBrand/list/simple',
            apiName: '品牌分类下拉-前置条件:商品分类id',
        }, params, loading, headers)
    },
    goodsInfoSimple(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goodsInfo/list/simple',
            apiName: '商品下拉-前置条件:商品品牌id',
        }, params, loading, headers)
    },
    cardInventorySearch(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/search/index',
            apiName: '库存列表-分页',
        }, params, loading, headers)
    },
    cardInventoryBatchModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/import/batchModify',
            apiName: '导入批量修改',
        }, params, loading, headers, true)
    },
    cardInventoryBatchIn(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/import/in',
            apiName: '导入库存入库数据',
        }, params, loading, headers, true)
    },
    cardInventoryBatchOut(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/import/out',
            apiName: '导入库存出库数据',
        }, params, loading, headers, true)
    },
    cardInventoryRecord(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/search/record',
            apiName: '出入库记录-分页',
        }, params, loading, headers, true)
    },
    cardInventoryExportRecord(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/cardInventory/exportRecord',
            apiName: '导出出库记录详情',
        }, params, loading, headers, true)
    },
}
